-
Notifications
You must be signed in to change notification settings - Fork 367
Upgrades eslint to v9 #6880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrades eslint to v9 #6880
Conversation
65c99bf to
1bfbcb7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades ESLint from v8 to v9, which required extensive code changes to comply with newly activated rules. The upgrade modernizes the linting configuration by migrating from the legacy .eslintrc.cjs format to the new flat config system in eslint.config.mjs.
- Migrate to ESLint v9 flat configuration system
- Fix violations from newly activated ESLint rules across the codebase
- Update TypeScript and Mocha ESLint plugins to compatible versions
Reviewed Changes
Copilot reviewed 161 out of 163 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| package.json | Updated ESLint and related dependencies to v9 compatible versions |
| eslint.config.mjs | New flat configuration replacing the old .eslintrc.cjs format |
| .eslintrc.cjs | Removed legacy ESLint configuration file |
| Various TS files | Fixed ESLint rule violations including function return types, unused catch variables, regex escaping, and code formatting |
Files not reviewed (1)
- npm-shrinkwrap.json: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
1bfbcb7 to
9ccaf1a
Compare
33d51b8 to
ccc5180
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work Milan, a couple of small comments...
ccc5180 to
b7635d7
Compare
Closes #6350
After upgrading to the latest Eslint version, a lot of extra rules were activated, which all made sense. This means I had to make quite a few changes to files violating these rules.